package com.gangan.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2019-08-20
 */
@ApiModel(value="菜单权限持久类",description="菜单权限持久类")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tl_auth")
public class Auth implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value="菜单权限自增主键",example="1")
    @TableId(value = "auth_id", type = IdType.AUTO)
    private Integer authId;

    @ApiModelProperty(value="权限名称",example="菜单列表")
    private String authName;

    @ApiModelProperty(value="父类菜单自增主键",example="1")
    private Integer authPid;

    @ApiModelProperty(value="控制层地址",example="cms")
    private String authC;
    @ApiModelProperty(value="请求地址",example="list")
    private String authA;

    @ApiModelProperty(value="菜单排序",example="0")
    private Integer sort;

    /**
     * 1,显示,0不显示
     */
    @ApiModelProperty(value="菜单是否显示",example="1")
    private Integer isShow;
    @ApiModelProperty(value="暂不知有何作用..",example="??")
    private String parameters;

    /**
     * 模块名称
     */
    @ApiModelProperty(value="暂不知有何作用..",example="??")
    private String app;

    /**
     * 原ID
     */
    @ApiModelProperty(value="暂不知有何作用..",example="??")
    private Integer sourseId;

    @ApiModelProperty(value="样式图标",example="el-icon-s-tools")
    private String icon;
    @ApiModelProperty(value="暂不知有何作用..",example="??")
    private String authPath;

    /**
     * 级别
     */
    @ApiModelProperty(value="暂不知有何作用..",example="??")
    private Integer authLevel;
    /**
     *  1是按钮权限 0是菜单权限
     */
    @ApiModelProperty(value="权限类型",example="0")
    private Integer authType;
    /**
     * 菜单权限标识
     * authType为按钮类型时使用。
     */
    @ApiModelProperty(value="菜单权限标识",example="sys_upms_add")
    private String permission;

    @ApiModelProperty(value="VUE页面路径",example="views/login/index")
    private String component;

    @TableLogic
    @ApiModelProperty(value="逻辑删除识别",example="views/login/index")
    private boolean delFlag;

    @ApiModelProperty(value="前端url地址",example="/upms")
    private String path;


}
